'use strict';

/**
 * @param {Egg.Application} app - egg application
 */

module.exports = app => { 
  require('./router/home/index')(app)        // 导入前台模块, 需要添加全局应用对象
  require('./router/admin/index')(app)        // 导入后台模块, 需要添加全局应用对象
  const { router, controller } = app;
  router.get('/', controller.index.index);
};
